

//是否生产环境
const isProduction = process.env.NODE_ENV === 'production';
//cdn地址
const cdn = {
    css: [],
    js: [
        'http://cdn.bootcss.com/vue/2.6.10/vue.runtime.min.js',
        'http://cdn.bootcss.com/vue-router/3.0.3/vue-router.min.js',
        'http://cdn.bootcss.com/vuex/3.0.1/vuex.min.js',
        'http://cdn.bootcss.com/axios/0.19.0/axios.min.js',
        'http://cdn.bootcss.com/vue-lazyload/1.3.2/vue-lazyload.js',
    ]
}

module.exports= {
    outputDir: 'dist',  //输出目录
    assetsDir: 'assets',    //静态资源目录名
    lintOnSave: false,  //是否开启eslint
    publicPath: './',   //资源路径，设为相对
    productionSourceMap: false, //去除map文件
    devServer: {
        open: false,
        host: '0.0.0.0',
        port: 8080,
        https: false,
        hotOnly: true,
        proxy: {
            //配置访问代理
            '/guishang/api': {
                target: 'http://sit.dtdtest.cn/guishang/api',
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    '^/guishang/api': ''
                }
            }
        }
    },
}
